package com.ht.domin.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 收藏
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//数据库中对应的数据库名
@Document(collection = "collection")
public class CollectionBO {

    @Id
    private String id;
    //用户
    private String user;
    //医生
    private String doctor;
    //医生所属医院
    private String hospital;
    //文章标题
    @Field("article_title")
    private String articleTitle;
    //发表时间
    @Field("published_time")
    private String published_Time;

}
